package com.lintf.api;

import com.lintf.service.TestService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ system:Mac
 * @ author:lin tingfeng
 * @ data:2022/3/21 18:35
 * @ package_name:com.lintf.api
 * @ project_name:MavenDemo
 * @ desc:
 */
@RestController
public class TestApi {

    TestService testService = msg -> {
        return msg;
    };

    @RequestMapping("/Test/{msg}")
    public String test(@PathVariable String msg) {
        return testService.SendTest(msg);
    }

}
